import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

import makefileGenerator.MakefileBuilder;

import file.Texs;

public class MakefileGenerator {
	static File folder;

	public static void main(String[] args) throws FileNotFoundException {
		folder = new File(".");
		System.out.println("progressing");
		// System.out.println(folder.getAbsolutePath());
		Texs texs = Texs.getTexs();
		texs.setParent(folder);
		MakefileBuilder builder = new MakefileBuilder();
		StringBuilder stringBuilder = builder.build();
		// System.out.println(stringBuilder);
		PrintStream out = new PrintStream(new FileOutputStream("makefile"));
		out.print(stringBuilder);
		out.flush();
		out.close();
		System.out.println("all done");
	}
}
